package Smallprogram.entiy;

import java.util.List;

public class Orderbiao {
    private int id;//订单id

    private String paymode;//付款方式
    private String status_text;//是否取餐
    private String mobile;//电话
    private int goods_num;//购买数量
    private double total_amount;//总价格
    private List<Store> store;//地址
    private List<Goods> goods;//商品信息

    private String completed_time;//下单时间
    private double amount;//总价格
    private String productioned_time;//取餐时间

    private String postscript;//备注

    private int sortnum; //随机数

    private String order_no;// 订单号

    private int Userid;//用户id
    private int Helpuourslf;//自取(1)或外卖(0)

    public Orderbiao() {
    }



    public int getHelpuourslf() {
        return Helpuourslf;
    }

    public void setHelpuourslf(int helpuourslf) {
        Helpuourslf = helpuourslf;
    }

    public String getOrder_no() {
        return order_no;
    }

    public void setOrder_no(String order_no) {
        this.order_no = order_no;
    }

    public int getUserid() {
        return Userid;
    }

    public void setUserid(int userid) {
        Userid = userid;
    }

    public Orderbiao(int id, String paymode, String status_text, String completed_time, String productioned_time, String postscript, String order_no) {
        this.id = id;

        this.paymode = paymode;
        this.status_text = status_text;
        this.completed_time = completed_time;
        this.productioned_time = productioned_time;
        this.postscript = postscript;
        this.order_no = order_no;
    }

    public Orderbiao(int id, String paymode, String status_text, String completed_time, String productioned_time, String postscript, int sortnum, String order_no) {
        this.id = id;
        this.paymode = paymode;
        this.status_text = status_text;
        this.completed_time = completed_time;
        this.productioned_time = productioned_time;
        this.postscript = postscript;
        this.sortnum = sortnum;
        this.order_no = order_no;
    }

    public String getStatus_text() {
        return status_text;
    }

    public void setStatus_text(String status_text) {
        this.status_text = status_text;
    }

    public String getCompleted_time() {
        return completed_time;
    }

    public void setCompleted_time(String completed_time) {
        this.completed_time = completed_time;
    }


    public int getGoods_num() {
        return goods_num;
    }

    public void setGoods_num(int goods_num) {
        this.goods_num = goods_num;
    }



    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getProductioned_time() {
        return productioned_time;
    }

    public void setProductioned_time(String productioned_time) {
        this.productioned_time = productioned_time;
    }

    public String getPostscript() {
        return postscript;
    }

    public void setPostscript(String postscript) {
        this.postscript = postscript;
    }

    public int getSortnum() {
        return sortnum;
    }

    public void setSortnum(int sortnum) {
        this.sortnum = sortnum;
    }

    public String getOrderno() {
        return order_no;
    }

    public void setOrderno(String order_no) {
        this.order_no = order_no;
    }



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPaymode() {
        return paymode;
    }

    public void setPaymode(String paymode) {
        this.paymode = paymode;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public double getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(double total_amount) {
        this.total_amount = total_amount;
    }

    public List<Store> getStore() {
        return store;
    }

    public void setStore(List<Store> store) {
        this.store = store;
    }

    public List<Goods> getGoods() {
        return goods;
    }

    public void setGoods(List<Goods> goods) {
        this.goods = goods;
    }

    public class Store {
        private String address;
        private String longitude;
        private String latitude;
        private String mobile;
        private String name;

        public Store() {
        }

        public Store(String address, String mobile, String name) {
            this.address = address;
            this.mobile = mobile;
            this.name = name;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public static class Goods {
        private int Detailsid;
        private int snacksid;
        private int Orderbiaoid;
        private double originAmount;
        private double price;
        private double amount;
        private String name;
        private int number;
        private String puserstime;


        public Goods(int detailsid, int snacksid, int orderbiaoid, double originAmount, double price, double amount, String name, int number, String puserstime) {
            Detailsid = detailsid;
            this.snacksid = snacksid;
            Orderbiaoid = orderbiaoid;
            this.originAmount = originAmount;
            this.price = price;
            this.amount = amount;
            this.name = name;
            this.number = number;
            this.puserstime = puserstime;
        }

        public String getPuserstime() {
            return puserstime;
        }

        public void setPuserstime(String puserstime) {
            this.puserstime = puserstime;
        }

        public Goods() {
        }

        public Goods(int detailsid, int snacksid, int orderbiaoid, double originAmount, double price, double amount, String name, int number) {
            Detailsid = detailsid;
            this.snacksid = snacksid;
            Orderbiaoid = orderbiaoid;
            this.originAmount = originAmount;
            this.price = price;
            this.amount = amount;
            this.name = name;
            this.number = number;
        }

        public int getDetailsid() {
            return Detailsid;
        }

        public void setDetailsid(int detailsid) {
            Detailsid = detailsid;
        }

        public int getSnacksid() {
            return snacksid;
        }

        public void setSnacksid(int snacksid) {
            this.snacksid = snacksid;
        }

        public int getOrderbiaoid() {
            return Orderbiaoid;
        }

        public void setOrderbiaoid(int orderbiaoid) {
            Orderbiaoid = orderbiaoid;
        }

        public double getOriginAmount() {
            return originAmount;
        }

        public void setOriginAmount(double originAmount) {
            this.originAmount = originAmount;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }
    }

}
